/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package FileStructure;

import Peer.peerRequest.bitField;
import Peer.peerRequest.blockRequest;
import java.nio.ByteBuffer;
import java.util.ArrayList;

/**
 *
 * @author user
 */
public class Algoritma {

	public ArrayList<blockRequest> generateRequest(bitField bf){

            ArrayList<blockRequest> messageQueue = new ArrayList<blockRequest>();
//            for (int i = 0; i < bf.bitF.size(); i++)
//            {
//                if(bf.bitF.get(i) == (byte)1)
//                {
//                    for(int j = 0; j<8;j++)
//                    {
//                        //messageQueue.add(new blockRequest(ByteBuffer.allocate(4).putInt(i).array(), ByteBuffer.allocate(4).putInt(j).array(), ByteBuffer.allocate(4).putInt(8).array()));
//                    }
//                }
//            }
            return messageQueue;
	}
}
